<?php
$v_status = -1;
$v_filter = "";
if(isset($_REQUEST['hdn_filter'])){
	$v_filter=_replace_bad_char(trim($_REQUEST['hdn_filter']));
}	
if(_is_sqlserver()){
	$cmd = @mssql_init("ONEGATE_CateGetAll", $conn);
	@mssql_bind($cmd, "@p_filter", $v_filter, SQLVARCHAR);
	@mssql_bind($cmd, "@p_status", $v_status, SQLINT4);
	$result_all_cate = @mssql_execute($cmd);
	$v_count = @mssql_num_rows($result_all_cate);
	$arr_all_cate = _get_row_to_array($result_all_cate);
	@mssql_free_result($result_all_cate);
}?>
